package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_user" )
public class User  implements Serializable {

	private static final long serialVersionUID =  3156238477542384880L;

	/**
	 * 唯一uid
	 */
	@Id
   	@Column(name = "uid" )
	private String uid;

	/**
	 * 用户名
	 */
   	@Column(name = "user_name" )
	private String userName;

	/**
	 * 密码
	 */
   	@Column(name = "pass_word" )
	private String passWord;

	/**
	 * 性别(1:男2:女)
	 */
   	@Column(name = "gender" )
	private Integer gender;

	/**
	 * 个人头像
	 */
   	@Column(name = "avatar" )
	private String avatar;

	/**
	 * 邮箱
	 */
   	@Column(name = "email" )
	private String email;

	/**
	 * 出生年月日
	 */
   	@Column(name = "birthday" )
	private Date birthday;

	/**
	 * 手机
	 */
   	@Column(name = "mobile" )
	private String mobile;

	/**
	 * 邮箱验证码
	 */
   	@Column(name = "valid_code" )
	private String validCode;

	/**
	 * 自我简介最多150字
	 */
   	@Column(name = "summary" )
	private String summary;

	/**
	 * 登录次数
	 */
   	@Column(name = "login_count" )
	private Long loginCount;

	/**
	 * 最后登录时间
	 */
   	@Column(name = "last_login_time" )
	private Date lastLoginTime;

	/**
	 * 最后登录IP
	 */
   	@Column(name = "last_login_ip" )
	private String lastLoginIp;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 昵称
	 */
   	@Column(name = "nick_name" )
	private String nickName;

	/**
	 * 资料来源
	 */
   	@Column(name = "source" )
	private String source;

	/**
	 * 平台uuid
	 */
   	@Column(name = "uuid" )
	private String uuid;

	/**
	 * QQ号
	 */
   	@Column(name = "qq_number" )
	private String qqNumber;

	/**
	 * 微信号
	 */
   	@Column(name = "we_chat" )
	private String weChat;

	/**
	 * 职业
	 */
   	@Column(name = "occupation" )
	private String occupation;

	/**
	 * 评论状态 1:正常 0:禁言
	 */
   	@Column(name = "comment_status" )
	private Integer commentStatus;

	/**
	 * ip来源
	 */
   	@Column(name = "ip_source" )
	private String ipSource;

	/**
	 * 浏览器
	 */
   	@Column(name = "browser" )
	private String browser;

	/**
	 * 操作系统
	 */
   	@Column(name = "os" )
	private String os;

	/**
	 * 是否开启邮件通知 1:开启 0:关闭
	 */
   	@Column(name = "start_email_notification" )
	private Integer startEmailNotification;

	/**
	 * 用户标签：0：普通用户，1：管理员，2：博主 等
	 */
   	@Column(name = "user_tag" )
	private Integer userTag;

}
